package com.mdx.rest.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : jiagang
 * @date : Created in 2021/11/15 17:14
 */
@RestController
@RequestMapping("/community")
public class HelloWordController {

    @GetMapping("hello")
    public String hello(){
        return "hello word";
    }

    @GetMapping("product/hello")
    public String product(){
        return "I am a product";
    }

    @GetMapping("admin/hello")
    public String admin(){
        return "I am a admin";
    }
}
